package service.impl;

import dao.PowerBatteryMapper;
import entity.PowerBattery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import service.PowerBatteryService;

import java.util.List;

//@Component
@Service
public class PowerBatteryServiceImpl implements PowerBatteryService {

    @Autowired
    private PowerBatteryMapper powerBatteryMapper;

    @Override
    public List<PowerBattery> powerList() {

        return powerBatteryMapper.powerList();
    }

    @Override
    public PowerBattery powerSelect(int id) {
        return powerBatteryMapper.powerSelect(id);
    }

    @Override
    public int powerUpdate(PowerBattery powerBattery) {
        return powerBatteryMapper.powerUpdate(powerBattery);
    }

    @Override
    public int powerDelete(int id) {
        return powerBatteryMapper.powerDelete(id);
    }
}
